/**
 * 
 */
package org.t2.backstage.module.gameserver.from;

import org.t2.backstage.module.gameserver.model.GameDb;

/**
 * @author YY
 *
 */
public class GameDbForm {
	private String dbName;
	private int platformId;
	private int serverId;
	private String type;
	private int zoneId;
	private String alias;
	private String ipPort;
	private String user;
	private String password;
	private int minIdle;
	private int maxActive;
	private int maxWaitMillis;
	
	public GameDbForm() {}
	public GameDbForm(GameDb gameDb) {
		this.dbName = gameDb.getDbName();
		this.platformId = gameDb.getPlatformId();
		this.serverId = gameDb.getServerId();
		this.type = gameDb.getType();
		this.zoneId = gameDb.getZoneId();
		this.alias = gameDb.getAlias();
		this.ipPort = gameDb.getIpPort();
		this.user = gameDb.getUser();
		this.password = gameDb.getPassword();
		this.minIdle = gameDb.getMinIdle();
		this.maxActive = gameDb.getMaxActive();
		this.maxWaitMillis = gameDb.getMaxWaitMillis();
	}
	public String getDbName() {
		return dbName;
	}
	public int getPlatformId() {
		return platformId;
	}
	public int getServerId() {
		return serverId;
	}
	public String getType() {
		return type;
	}
	public int getZoneId() {
		return zoneId;
	}
	public String getAlias() {
		return alias;
	}
	public String getIpPort() {
		return ipPort;
	}
	public String getUser() {
		return user;
	}
	public String getPassword() {
		return password;
	}
	public int getMinIdle() {
		return minIdle;
	}
	public int getMaxActive() {
		return maxActive;
	}
	public int getMaxWaitMillis() {
		return maxWaitMillis;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}
	public void setServerId(int serverId) {
		this.serverId = serverId;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setZoneId(int zoneId) {
		this.zoneId = zoneId;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public void setIpPort(String ipPort) {
		this.ipPort = ipPort;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}
	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}
	public void setMaxWaitMillis(int maxWaitMillis) {
		this.maxWaitMillis = maxWaitMillis;
	}
	
}
